// import Cookies from 'js-cookie'
const app = {
  state: {
    openLoading: false,
    slideName: 'right' // 过度动画
  },
  mutations: {
    app_setSlideName(state, slide) {
      if (slide) { // 如果时间戳存在
        state.slideName = slide
      } else {
        state.slideName = 'right'
      }
    },
    app_openLoading(state) {
      state.openLoading = true
    },
    app_closeLoading(state) {
      state.openLoading = false
    }
  },
  actions: {}
}
export default app
